#include<iostream>
#include <cmath>
using namespace std;
int main()
{
	int target =9;
   char nums[] = { 2,7,11,15 };
   for (int i = 0;i < strlen(nums)-1;i++)
   {
	   for (int j = 0;j < strlen(nums);j++)
	   {
		   if (nums[i] + nums[j] == target)
			   cout<<"nums[" << i << "]" <<" +"<< "nums[" << j << "]"<<"="<< 0<<<endl;
	   }
   }
	return 0;
}
